API: (bug 16581) Fix regression from r44015 ("Various minor cleanup") which changed...
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 10 Dec 2008 14:12:54 +0000 (14:12 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 10 Dec 2008 14:12:54 +0000 (14:12 +0000)
includes/api/ApiEditPage.php

index acd6579..c69d506 100644 (file)
@@ -116,6 +116,8 @@ class ApiEditPage extends ApiBase {
                                $this->dieUsage("The section parameter must be set to an integer or 'new'", "invalidsection");
                        $reqArr['wpSection'] = $params['section'];
                }
+               else
+                       $reqArr['wpSection'] = '';
 
                if($params['watch'])
                        $watch = true;